<!DOCTYPE html>
<html>
<!-- Created by GNU Texinfo 7.1.1, https://www.gnu.org/software/texinfo/ -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!-- Copyright © 1988-2023 Free Software Foundation, Inc.

Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.3 or
any later version published by the Free Software Foundation; with the
Invariant Sections being "Funding Free Software", the Front-Cover
Texts being (a) (see below), and with the Back-Cover Texts being (b)
(see below).  A copy of the license is included in the section entitled
"GNU Free Documentation License".

(a) The FSF's Front-Cover Text is:

A GNU Manual

(b) The FSF's Back-Cover Text is:

You have freedom to copy and modify this GNU Manual, like GNU
     software.  Copies published by the Free Software Foundation raise
     funds for GNU development. -->
<title>Sequence iterators (GNU Compiler Collection (GCC) Internals)</title>

<meta name="description" content="Sequence iterators (GNU Compiler Collection (GCC) Internals)">
<meta name="keywords" content="Sequence iterators (GNU Compiler Collection (GCC) Internals)">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="makeinfo">
<meta name="viewport" content="width=device-width,initial-scale=1">

<link href="index.html" rel="start" title="Top">
<link href="Option-Index.html" rel="index" title="Option Index">
<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
<link href="GIMPLE.html" rel="up" title="GIMPLE">
<link href="Adding-a-new-GIMPLE-statement-code.html" rel="next" title="Adding a new GIMPLE statement code">
<link href="GIMPLE-sequences.html" rel="prev" title="GIMPLE sequences">
<style type="text/css">
<!--
a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
div.example {margin-left: 3.2em}
span:hover a.copiable-link {visibility: visible}
strong.def-name {font-family: monospace; font-weight: bold; font-size: larger}
ul.mark-bullet {list-style-type: disc}
-->
</style>


</head>

<body lang="en">
<div class="section-level-extent" id="Sequence-iterators">
<div class="nav-panel">
<p>
Next: <a href="Adding-a-new-GIMPLE-statement-code.html" accesskey="n" rel="next">Adding a new GIMPLE statement code</a>, Previous: <a href="GIMPLE-sequences.html" accesskey="p" rel="prev">GIMPLE sequences</a>, Up: <a href="GIMPLE.html" accesskey="u" rel="up">GIMPLE</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Option-Index.html" title="Index" rel="index">Index</a>]</p>
</div>
<hr>
<h3 class="section" id="Sequence-iterators-1"><span>12.10 Sequence iterators<a class="copiable-link" href="#Sequence-iterators-1"> &para;</a></span></h3>
<a class="index-entry-id" id="index-Sequence-iterators"></a>

<p>Sequence iterators are convenience constructs for iterating
through statements in a sequence.  Given a sequence <code class="code">SEQ</code>, here is
a typical use of gimple sequence iterators:
</p>
<div class="example smallexample">
<pre class="example-preformatted">gimple_stmt_iterator gsi;

for (gsi = gsi_start (seq); !gsi_end_p (gsi); gsi_next (&amp;gsi))
  {
    gimple g = gsi_stmt (gsi);
    /* Do something with gimple statement <code class="code">G</code>.  */
  }
</pre></div>

<p>Backward iterations are possible:
</p>
<div class="example smallexample">
<pre class="example-preformatted">        for (gsi = gsi_last (seq); !gsi_end_p (gsi); gsi_prev (&amp;gsi))
</pre></div>

<p>Forward and backward iterations on basic blocks are possible with
<code class="code">gsi_start_bb</code> and <code class="code">gsi_last_bb</code>.
</p>
<p>In the documentation below we sometimes refer to enum
<code class="code">gsi_iterator_update</code>.  The valid options for this enumeration are:
</p>
<ul class="itemize mark-bullet">
<li><code class="code">GSI_NEW_STMT</code>
Only valid when a single statement is added.  Move the iterator to it.

</li><li><code class="code">GSI_SAME_STMT</code>
Leave the iterator at the same statement.

</li><li><code class="code">GSI_CONTINUE_LINKING</code>
Move iterator to whatever position is suitable for linking other
statements in the same direction.
</li></ul>

<p>Below is a list of the functions used to manipulate and use
statement iterators.
</p>
<dl class="first-deftypefn">
<dt class="deftypefn" id="index-gsi_005fstart"><span class="category-def">GIMPLE function: </span><span><code class="def-type">gimple_stmt_iterator</code> <strong class="def-name">gsi_start</strong> <code class="def-code-arguments">(gimple_seq seq)</code><a class="copiable-link" href="#index-gsi_005fstart"> &para;</a></span></dt>
<dd><p>Return a new iterator pointing to the sequence <code class="code">SEQ</code>&rsquo;s first
statement.  If <code class="code">SEQ</code> is empty, the iterator&rsquo;s basic block is <code class="code">NULL</code>.
Use <code class="code">gsi_start_bb</code> instead when the iterator needs to always have
the correct basic block set.
</p></dd></dl>

<dl class="first-deftypefn">
<dt class="deftypefn" id="index-gsi_005fstart_005fbb"><span class="category-def">GIMPLE function: </span><span><code class="def-type">gimple_stmt_iterator</code> <strong class="def-name">gsi_start_bb</strong> <code class="def-code-arguments">(basic_block bb)</code><a class="copiable-link" href="#index-gsi_005fstart_005fbb"> &para;</a></span></dt>
<dd><p>Return a new iterator pointing to the first statement in basic
block <code class="code">BB</code>.
</p></dd></dl>

<dl class="first-deftypefn">
<dt class="deftypefn" id="index-gsi_005flast"><span class="category-def">GIMPLE function: </span><span><code class="def-type">gimple_stmt_iterator</code> <strong class="def-name">gsi_last</strong> <code class="def-code-arguments">(gimple_seq seq)</code><a class="copiable-link" href="#index-gsi_005flast"> &para;</a></span></dt>
<dd><p>Return a new iterator initially pointing to the last statement of
sequence <code class="code">SEQ</code>.  If <code class="code">SEQ</code> is empty, the iterator&rsquo;s basic block is
<code class="code">NULL</code>.  Use <code class="code">gsi_last_bb</code> instead when the iterator needs to always
have the correct basic block set.
</p></dd></dl>

<dl class="first-deftypefn">
<dt class="deftypefn" id="index-gsi_005flast_005fbb"><span class="category-def">GIMPLE function: </span><span><code class="def-type">gimple_stmt_iterator</code> <strong class="def-name">gsi_last_bb</strong> <code class="def-code-arguments">(basic_block bb)</code><a class="copiable-link" href="#index-gsi_005flast_005fbb"> &para;</a></span></dt>
<dd><p>Return a new iterator pointing to the last statement in basic
block <code class="code">BB</code>.
</p></dd></dl>

<dl class="first-deftypefn">
<dt class="deftypefn" id="index-gsi_005fend_005fp"><span class="category-def">GIMPLE function: </span><span><code class="def-type">bool</code> <strong class="def-name">gsi_end_p</strong> <code class="def-code-arguments">(gimple_stmt_iterator i)</code><a class="copiable-link" href="#index-gsi_005fend_005fp"> &para;</a></span></dt>
<dd><p>Return <code class="code">TRUE</code> if at the end of <code class="code">I</code>.
</p></dd></dl>

<dl class="first-deftypefn">
<dt class="deftypefn" id="index-gsi_005fone_005fbefore_005fend_005fp"><span class="category-def">GIMPLE function: </span><span><code class="def-type">bool</code> <strong class="def-name">gsi_one_before_end_p</strong> <code class="def-code-arguments">(gimple_stmt_iterator i)</code><a class="copiable-link" href="#index-gsi_005fone_005fbefore_005fend_005fp"> &para;</a></span></dt>
<dd><p>Return <code class="code">TRUE</code> if we&rsquo;re one statement before the end of <code class="code">I</code>.
</p></dd></dl>

<dl class="first-deftypefn">
<dt class="deftypefn" id="index-gsi_005fnext"><span class="category-def">GIMPLE function: </span><span><code class="def-type">void</code> <strong class="def-name">gsi_next</strong> <code class="def-code-arguments">(gimple_stmt_iterator *i)</code><a class="copiable-link" href="#index-gsi_005fnext"> &para;</a></span></dt>
<dd><p>Advance the iterator to the next gimple statement.
</p></dd></dl>

<dl class="first-deftypefn">
<dt class="deftypefn" id="index-gsi_005fprev"><span class="category-def">GIMPLE function: </span><span><code class="def-type">void</code> <strong class="def-name">gsi_prev</strong> <code class="def-code-arguments">(gimple_stmt_iterator *i)</code><a class="copiable-link" href="#index-gsi_005fprev"> &para;</a></span></dt>
<dd><p>Advance the iterator to the previous gimple statement.
</p></dd></dl>

<dl class="first-deftypefn">
<dt class="deftypefn" id="index-gsi_005fstmt"><span class="category-def">GIMPLE function: </span><span><code class="def-type">gimple</code> <strong class="def-name">gsi_stmt</strong> <code class="def-code-arguments">(gimple_stmt_iterator i)</code><a class="copiable-link" href="#index-gsi_005fstmt"> &para;</a></span></dt>
<dd><p>Return the current stmt.
</p></dd></dl>

<dl class="first-deftypefn">
<dt class="deftypefn" id="index-gsi_005fafter_005flabels"><span class="category-def">GIMPLE function: </span><span><code class="def-type">gimple_stmt_iterator</code> <strong class="def-name">gsi_after_labels</strong> <code class="def-code-arguments">(basic_block bb)</code><a class="copiable-link" href="#index-gsi_005fafter_005flabels"> &para;</a></span></dt>
<dd><p>Return a block statement iterator that points to the first
non-label statement in block <code class="code">BB</code>.
</p></dd></dl>

<dl class="first-deftypefn">
<dt class="deftypefn" id="index-gsi_005fstmt_005fptr"><span class="category-def">GIMPLE function: </span><span><code class="def-type">gimple *</code> <strong class="def-name">gsi_stmt_ptr</strong> <code class="def-code-arguments">(gimple_stmt_iterator *i)</code><a class="copiable-link" href="#index-gsi_005fstmt_005fptr"> &para;</a></span></dt>
<dd><p>Return a pointer to the current stmt.
</p></dd></dl>

<dl class="first-deftypefn">
<dt class="deftypefn" id="index-gsi_005fbb"><span class="category-def">GIMPLE function: </span><span><code class="def-type">basic_block</code> <strong class="def-name">gsi_bb</strong> <code class="def-code-arguments">(gimple_stmt_iterator i)</code><a class="copiable-link" href="#index-gsi_005fbb"> &para;</a></span></dt>
<dd><p>Return the basic block associated with this iterator.
</p></dd></dl>

<dl class="first-deftypefn">
<dt class="deftypefn" id="index-gsi_005fseq"><span class="category-def">GIMPLE function: </span><span><code class="def-type">gimple_seq</code> <strong class="def-name">gsi_seq</strong> <code class="def-code-arguments">(gimple_stmt_iterator i)</code><a class="copiable-link" href="#index-gsi_005fseq"> &para;</a></span></dt>
<dd><p>Return the sequence associated with this iterator.
</p></dd></dl>

<dl class="first-deftypefn">
<dt class="deftypefn" id="index-gsi_005fremove"><span class="category-def">GIMPLE function: </span><span><code class="def-type">void</code> <strong class="def-name">gsi_remove</strong> <code class="def-code-arguments">(gimple_stmt_iterator *i, bool remove_eh_info)</code><a class="copiable-link" href="#index-gsi_005fremove"> &para;</a></span></dt>
<dd><p>Remove the current stmt from the sequence.  The iterator is
updated to point to the next statement.  When <code class="code">REMOVE_EH_INFO</code> is
true we remove the statement pointed to by iterator <code class="code">I</code> from the <code class="code">EH</code>
tables.  Otherwise we do not modify the <code class="code">EH</code> tables.  Generally,
<code class="code">REMOVE_EH_INFO</code> should be true when the statement is going to be
removed from the <code class="code">IL</code> and not reinserted elsewhere.
</p></dd></dl>

<dl class="first-deftypefn">
<dt class="deftypefn" id="index-gsi_005flink_005fseq_005fbefore"><span class="category-def">GIMPLE function: </span><span><code class="def-type">void</code> <strong class="def-name">gsi_link_seq_before</strong> <code class="def-code-arguments">(gimple_stmt_iterator *i, gimple_seq seq, enum gsi_iterator_update mode)</code><a class="copiable-link" href="#index-gsi_005flink_005fseq_005fbefore"> &para;</a></span></dt>
<dd><p>Links the sequence of statements <code class="code">SEQ</code> before the statement pointed
by iterator <code class="code">I</code>.  <code class="code">MODE</code> indicates what to do with the iterator
after insertion (see <code class="code">enum gsi_iterator_update</code> above).
</p></dd></dl>

<dl class="first-deftypefn">
<dt class="deftypefn" id="index-gsi_005flink_005fbefore"><span class="category-def">GIMPLE function: </span><span><code class="def-type">void</code> <strong class="def-name">gsi_link_before</strong> <code class="def-code-arguments">(gimple_stmt_iterator *i, gimple g, enum gsi_iterator_update mode)</code><a class="copiable-link" href="#index-gsi_005flink_005fbefore"> &para;</a></span></dt>
<dd><p>Links statement <code class="code">G</code> before the statement pointed-to by iterator <code class="code">I</code>.
Updates iterator <code class="code">I</code> according to <code class="code">MODE</code>.
</p></dd></dl>

<dl class="first-deftypefn">
<dt class="deftypefn" id="index-gsi_005flink_005fseq_005fafter"><span class="category-def">GIMPLE function: </span><span><code class="def-type">void</code> <strong class="def-name">gsi_link_seq_after</strong> <code class="def-code-arguments">(gimple_stmt_iterator *i, gimple_seq seq, enum gsi_iterator_update mode)</code><a class="copiable-link" href="#index-gsi_005flink_005fseq_005fafter"> &para;</a></span></dt>
<dd><p>Links sequence <code class="code">SEQ</code> after the statement pointed-to by iterator <code class="code">I</code>.
<code class="code">MODE</code> is as in <code class="code">gsi_insert_after</code>.
</p></dd></dl>

<dl class="first-deftypefn">
<dt class="deftypefn" id="index-gsi_005flink_005fafter"><span class="category-def">GIMPLE function: </span><span><code class="def-type">void</code> <strong class="def-name">gsi_link_after</strong> <code class="def-code-arguments">(gimple_stmt_iterator *i, gimple g, enum gsi_iterator_update mode)</code><a class="copiable-link" href="#index-gsi_005flink_005fafter"> &para;</a></span></dt>
<dd><p>Links statement <code class="code">G</code> after the statement pointed-to by iterator <code class="code">I</code>.
<code class="code">MODE</code> is as in <code class="code">gsi_insert_after</code>.
</p></dd></dl>

<dl class="first-deftypefn">
<dt class="deftypefn" id="index-gsi_005fsplit_005fseq_005fafter"><span class="category-def">GIMPLE function: </span><span><code class="def-type">gimple_seq</code> <strong class="def-name">gsi_split_seq_after</strong> <code class="def-code-arguments">(gimple_stmt_iterator i)</code><a class="copiable-link" href="#index-gsi_005fsplit_005fseq_005fafter"> &para;</a></span></dt>
<dd><p>Move all statements in the sequence after <code class="code">I</code> to a new sequence.
Return this new sequence.
</p></dd></dl>

<dl class="first-deftypefn">
<dt class="deftypefn" id="index-gsi_005fsplit_005fseq_005fbefore"><span class="category-def">GIMPLE function: </span><span><code class="def-type">gimple_seq</code> <strong class="def-name">gsi_split_seq_before</strong> <code class="def-code-arguments">(gimple_stmt_iterator *i)</code><a class="copiable-link" href="#index-gsi_005fsplit_005fseq_005fbefore"> &para;</a></span></dt>
<dd><p>Move all statements in the sequence before <code class="code">I</code> to a new sequence.
Return this new sequence.
</p></dd></dl>

<dl class="first-deftypefn">
<dt class="deftypefn" id="index-gsi_005freplace"><span class="category-def">GIMPLE function: </span><span><code class="def-type">void</code> <strong class="def-name">gsi_replace</strong> <code class="def-code-arguments">(gimple_stmt_iterator *i, gimple stmt, bool update_eh_info)</code><a class="copiable-link" href="#index-gsi_005freplace"> &para;</a></span></dt>
<dd><p>Replace the statement pointed-to by <code class="code">I</code> to <code class="code">STMT</code>.  If <code class="code">UPDATE_EH_INFO</code>
is true, the exception handling information of the original
statement is moved to the new statement.
</p></dd></dl>

<dl class="first-deftypefn">
<dt class="deftypefn" id="index-gsi_005finsert_005fbefore"><span class="category-def">GIMPLE function: </span><span><code class="def-type">void</code> <strong class="def-name">gsi_insert_before</strong> <code class="def-code-arguments">(gimple_stmt_iterator *i, gimple stmt, enum gsi_iterator_update mode)</code><a class="copiable-link" href="#index-gsi_005finsert_005fbefore"> &para;</a></span></dt>
<dd><p>Insert statement <code class="code">STMT</code> before the statement pointed-to by iterator
<code class="code">I</code>, update <code class="code">STMT</code>&rsquo;s basic block and scan it for new operands.  <code class="code">MODE</code>
specifies how to update iterator <code class="code">I</code> after insertion (see enum
<code class="code">gsi_iterator_update</code>).
</p></dd></dl>

<dl class="first-deftypefn">
<dt class="deftypefn" id="index-gsi_005finsert_005fseq_005fbefore"><span class="category-def">GIMPLE function: </span><span><code class="def-type">void</code> <strong class="def-name">gsi_insert_seq_before</strong> <code class="def-code-arguments">(gimple_stmt_iterator *i, gimple_seq seq, enum gsi_iterator_update mode)</code><a class="copiable-link" href="#index-gsi_005finsert_005fseq_005fbefore"> &para;</a></span></dt>
<dd><p>Like <code class="code">gsi_insert_before</code>, but for all the statements in <code class="code">SEQ</code>.
</p></dd></dl>

<dl class="first-deftypefn">
<dt class="deftypefn" id="index-gsi_005finsert_005fafter"><span class="category-def">GIMPLE function: </span><span><code class="def-type">void</code> <strong class="def-name">gsi_insert_after</strong> <code class="def-code-arguments">(gimple_stmt_iterator *i, gimple stmt, enum gsi_iterator_update mode)</code><a class="copiable-link" href="#index-gsi_005finsert_005fafter"> &para;</a></span></dt>
<dd><p>Insert statement <code class="code">STMT</code> after the statement pointed-to by iterator
<code class="code">I</code>, update <code class="code">STMT</code>&rsquo;s basic block and scan it for new operands.  <code class="code">MODE</code>
specifies how to update iterator <code class="code">I</code> after insertion (see enum
<code class="code">gsi_iterator_update</code>).
</p></dd></dl>

<dl class="first-deftypefn">
<dt class="deftypefn" id="index-gsi_005finsert_005fseq_005fafter"><span class="category-def">GIMPLE function: </span><span><code class="def-type">void</code> <strong class="def-name">gsi_insert_seq_after</strong> <code class="def-code-arguments">(gimple_stmt_iterator *i, gimple_seq seq, enum gsi_iterator_update mode)</code><a class="copiable-link" href="#index-gsi_005finsert_005fseq_005fafter"> &para;</a></span></dt>
<dd><p>Like <code class="code">gsi_insert_after</code>, but for all the statements in <code class="code">SEQ</code>.
</p></dd></dl>

<dl class="first-deftypefn">
<dt class="deftypefn" id="index-gsi_005ffor_005fstmt"><span class="category-def">GIMPLE function: </span><span><code class="def-type">gimple_stmt_iterator</code> <strong class="def-name">gsi_for_stmt</strong> <code class="def-code-arguments">(gimple stmt)</code><a class="copiable-link" href="#index-gsi_005ffor_005fstmt"> &para;</a></span></dt>
<dd><p>Finds iterator for <code class="code">STMT</code>.
</p></dd></dl>

<dl class="first-deftypefn">
<dt class="deftypefn" id="index-gsi_005fmove_005fafter"><span class="category-def">GIMPLE function: </span><span><code class="def-type">void</code> <strong class="def-name">gsi_move_after</strong> <code class="def-code-arguments">(gimple_stmt_iterator *from, gimple_stmt_iterator *to)</code><a class="copiable-link" href="#index-gsi_005fmove_005fafter"> &para;</a></span></dt>
<dd><p>Move the statement at <code class="code">FROM</code> so it comes right after the statement
at <code class="code">TO</code>.
</p></dd></dl>

<dl class="first-deftypefn">
<dt class="deftypefn" id="index-gsi_005fmove_005fbefore"><span class="category-def">GIMPLE function: </span><span><code class="def-type">void</code> <strong class="def-name">gsi_move_before</strong> <code class="def-code-arguments">(gimple_stmt_iterator *from, gimple_stmt_iterator *to)</code><a class="copiable-link" href="#index-gsi_005fmove_005fbefore"> &para;</a></span></dt>
<dd><p>Move the statement at <code class="code">FROM</code> so it comes right before the statement
at <code class="code">TO</code>.
</p></dd></dl>

<dl class="first-deftypefn">
<dt class="deftypefn" id="index-gsi_005fmove_005fto_005fbb_005fend"><span class="category-def">GIMPLE function: </span><span><code class="def-type">void</code> <strong class="def-name">gsi_move_to_bb_end</strong> <code class="def-code-arguments">(gimple_stmt_iterator *from, basic_block bb)</code><a class="copiable-link" href="#index-gsi_005fmove_005fto_005fbb_005fend"> &para;</a></span></dt>
<dd><p>Move the statement at <code class="code">FROM</code> to the end of basic block <code class="code">BB</code>.
</p></dd></dl>

<dl class="first-deftypefn">
<dt class="deftypefn" id="index-gsi_005finsert_005fon_005fedge"><span class="category-def">GIMPLE function: </span><span><code class="def-type">void</code> <strong class="def-name">gsi_insert_on_edge</strong> <code class="def-code-arguments">(edge e, gimple stmt)</code><a class="copiable-link" href="#index-gsi_005finsert_005fon_005fedge"> &para;</a></span></dt>
<dd><p>Add <code class="code">STMT</code> to the pending list of edge <code class="code">E</code>.  No actual insertion is
made until a call to <code class="code">gsi_commit_edge_inserts</code>() is made.
</p></dd></dl>

<dl class="first-deftypefn">
<dt class="deftypefn" id="index-gsi_005finsert_005fseq_005fon_005fedge"><span class="category-def">GIMPLE function: </span><span><code class="def-type">void</code> <strong class="def-name">gsi_insert_seq_on_edge</strong> <code class="def-code-arguments">(edge e, gimple_seq seq)</code><a class="copiable-link" href="#index-gsi_005finsert_005fseq_005fon_005fedge"> &para;</a></span></dt>
<dd><p>Add the sequence of statements in <code class="code">SEQ</code> to the pending list of edge
<code class="code">E</code>.  No actual insertion is made until a call to
<code class="code">gsi_commit_edge_inserts</code>() is made.
</p></dd></dl>

<dl class="first-deftypefn">
<dt class="deftypefn" id="index-gsi_005finsert_005fon_005fedge_005fimmediate"><span class="category-def">GIMPLE function: </span><span><code class="def-type">basic_block</code> <strong class="def-name">gsi_insert_on_edge_immediate</strong> <code class="def-code-arguments">(edge e, gimple stmt)</code><a class="copiable-link" href="#index-gsi_005finsert_005fon_005fedge_005fimmediate"> &para;</a></span></dt>
<dd><p>Similar to <code class="code">gsi_insert_on_edge</code>+<code class="code">gsi_commit_edge_inserts</code>.  If a new
block has to be created, it is returned.
</p></dd></dl>

<dl class="first-deftypefn">
<dt class="deftypefn" id="index-gsi_005fcommit_005fone_005fedge_005finsert"><span class="category-def">GIMPLE function: </span><span><code class="def-type">void</code> <strong class="def-name">gsi_commit_one_edge_insert</strong> <code class="def-code-arguments">(edge e, basic_block *new_bb)</code><a class="copiable-link" href="#index-gsi_005fcommit_005fone_005fedge_005finsert"> &para;</a></span></dt>
<dd><p>Commit insertions pending at edge <code class="code">E</code>.  If a new block is created,
set <code class="code">NEW_BB</code> to this block, otherwise set it to <code class="code">NULL</code>.
</p></dd></dl>

<dl class="first-deftypefn">
<dt class="deftypefn" id="index-gsi_005fcommit_005fedge_005finserts"><span class="category-def">GIMPLE function: </span><span><code class="def-type">void</code> <strong class="def-name">gsi_commit_edge_inserts</strong> <code class="def-code-arguments">(void)</code><a class="copiable-link" href="#index-gsi_005fcommit_005fedge_005finserts"> &para;</a></span></dt>
<dd><p>This routine will commit all pending edge insertions, creating
any new basic blocks which are necessary.
</p></dd></dl>


</div>
<hr>
<div class="nav-panel">
<p>
Next: <a href="Adding-a-new-GIMPLE-statement-code.html">Adding a new GIMPLE statement code</a>, Previous: <a href="GIMPLE-sequences.html">GIMPLE sequences</a>, Up: <a href="GIMPLE.html">GIMPLE</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Option-Index.html" title="Index" rel="index">Index</a>]</p>
</div>



</body>
</html>
